{extend name="layout" /}
{block name="content"}
<div class="mui-content">
	<div class="tm-df-size">
		<div class="tm-label tm-font-gray">
			<div class="main-content">
				<span>基本信息</span>
			</div>
		</div>
		<ul class="mui-table-view max">
			<li class="mui-table-view-cell">
				<div class="tm-cell-pad">
					<div class="tm-flex flex-align-center">
						<div class="tm-flex-1">
							<span class="tm-font-bold">用户名</span>
						</div>
						<div class="tm-icon-item">
							<div class="tm-icon-label">
								<span class="tm-font-gray">{$uinfo.username}</span>
							</div>
						</div>
					</div>
				</div>
			</li>
			<li class="mui-table-view-cell">
				<a class="mui-navigate-right appprompt" href="Javascript:;" coco-url="{:url('v1/adminuser/update')}" title="姓名" field="realname" format="text" defaultValue="{$uinfo.realname}" coco-callback="suc_back">
					<div class="tm-cell-pad">
						<div class="tm-flex flex-align-center">
							<div class="tm-flex-1">
								<span class="tm-font-bold">姓名</span>
							</div>
							<div class="tm-icon-item">
								<div class="tm-icon-label">
									<span class="tm-font-gray">{$uinfo.realname}</span>
								</div>
							</div>
						</div>
					</div>
				</a>
			</li>	
			<li class="mui-table-view-cell">
				<div class="tm-cell-pad">
					<div class="tm-flex flex-align-center">
						<div class="tm-flex-1">
							<span class="tm-font-bold">所属经销商</span>
						</div>
						<div class="tm-icon-item">
							<div class="tm-icon-label">
								<span class="tm-font-gray">{$uinfo.dealer}</span>
							</div>
						</div>
					</div>
				</div>
			</li>
			<li class="mui-table-view-cell">
				<div class="tm-cell-pad">
					<div class="tm-flex flex-align-center">
						<div class="tm-flex-1">
							<span class="tm-font-bold">所属销售总监</span>
						</div>
						<div class="tm-icon-item">
							<div class="tm-icon-label">
								<span class="tm-font-gray">{$uinfo.prealname}</span>
							</div>
						</div>
					</div>
				</div>
			</li>
			<li class="mui-table-view-cell">
				<a class="mui-navigate-right appprompt" href="Javascript:;" coco-url="{:url('v1/adminuser/update')}" title="姓名" field="phone" format="text" defaultValue="{$uinfo.phone}" coco-callback="suc_back">
					<div class="tm-cell-pad">
						<div class="tm-flex flex-align-center">
							<div class="tm-flex-1">
								<span class="tm-font-bold">手机号</span>
							</div>
							<div class="tm-icon-item">
								<div class="tm-icon-label">
									<span class="tm-font-gray">{$uinfo.phone}</span>
								</div>
							</div>
						</div>
					</div>
				</a>
			</li>
			<li class="mui-table-view-cell">
				<a class="mui-navigate-right appprompt" href="Javascript:;" coco-url="{:url('v1/adminuser/update')}" title="性别" field="gender" format="radio" defaultValue="{$uinfo.gender}" primaryValues='[{"id":"男", "name":"男"},{"id":"女", "name":"女"}]' coco-callback="suc_back">
					<div class="tm-cell-pad">
						<div class="tm-flex flex-align-center">
							<div class="tm-flex-1">
								<span class="tm-font-bold">性别</span>
							</div>
							<div class="tm-icon-item">
								<div class="tm-icon-label">
									<span class="tm-font-gray">{$uinfo.gender}</span>
								</div>
							</div>
						</div>
					</div>
				</a>
			</li>
			<li class="mui-table-view-cell">
				<a class="mui-navigate-right appprompt" href="Javascript:;" coco-url="{:url('v1/adminuser/update')}" title="姓名" field="idcard" format="text" defaultValue="{$uinfo.idcard}" coco-callback="suc_back">
					<div class="tm-cell-pad">
						<div class="tm-flex flex-align-center">
							<div class="tm-flex-1">
								<span class="tm-font-bold">身份证号</span>
							</div>
							<div class="tm-icon-item">
								<div class="tm-icon-label">
									<span class="tm-font-gray">{$uinfo.idcard}</span>
								</div>
							</div>
						</div>
					</div>
				</a>
			</li>
			<li class="mui-table-view-cell">
				<a class="mui-navigate-right appprompt" href="Javascript:;" coco-url="{:url('v1/adminuser/update')}" title="姓名" field="weixin" format="text" defaultValue="{$uinfo.weixin}" coco-callback="suc_back">
					<div class="tm-cell-pad">
						<div class="tm-flex flex-align-center">
							<div class="tm-flex-1">
								<span class="tm-font-bold">微信号</span>
							</div>
							<div class="tm-icon-item">
								<div class="tm-icon-label">
									<span class="tm-font-gray">{$uinfo.weixin}</span>
								</div>
							</div>
						</div>
					</div>
				</a>
			</li>
			<li class="mui-table-view-cell">
				<a class="mui-navigate-right appprompt" href="Javascript:;" coco-url="{:url('v1/adminuser/update')}" field="identity" format="radio" defaultValue="{$uinfo.identity|default=1}" primaryValues='{$datajson}' coco-callback="suc_back">
					<div class="tm-cell-pad">
						<div class="tm-flex flex-align-center">
							<div class="tm-flex-1">
								<span class="tm-font-bold">社会身份</span>
							</div>
							<div class="tm-icon-item">
								<div class="tm-icon-label">
									<span class="tm-font-gray">{$uinfo.identity_name}</span>
								</div>
							</div>
						</div>
					</div>
				</a>
			</li>
		</ul>
	</div>
	</form>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
	function suc_back (obj, data) {
		coco_refresh_window();
	}
</script>
{/block}